﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report_Card.aspx.cs" Inherits="bts_webapp.Reports.Report_Card" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2011.2.915.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <p><a href="../Default.aspx">Trang chủ</a></p>
        <%--<asp:Table ID="Table1" runat="server" Width="558px" Height="20px">
        <asp:TableRow>
        <asp:TableCell Width="150px">
            <asp:Label ID="Label1" runat="server" Width="150px" Font-Bold="True">Tình trạng Card:</asp:Label>

        </asp:TableCell>
        
        <asp:TableCell>--%>
             <asp:DropDownList ID="DropDownList1" runat="server" 
                AutoPostBack="True" Height="20px"
                onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
            Width="457px">
                 <asp:ListItem Value="1" Selected="True">Sử dụng</asp:ListItem>
                 <asp:ListItem Value="0">Chưa sử dụng</asp:ListItem>
            </asp:DropDownList>

       <%-- </asp:TableCell>
        </asp:TableRow>
        </asp:Table>--%>
        <br />
    </div>
    <div>
    <rsweb:reportviewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Width="100%" 
        Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Height="100%">
        <LocalReport ReportPath="RDLC\Report_Card_.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="LinqDataSource1" Name="DataSet1" />
            </DataSources>
        </LocalReport>
    </rsweb:reportviewer>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="bts_webapp.Models.BTSModelDataContext" EntityTypeName="" 
        TableName="VIBA_CARDs" Where="Status == @Status">
        <WhereParameters>
            <asp:ControlParameter ControlID="DropDownList1" Name="Status" 
                PropertyName="SelectedValue" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>

    <asp:ScriptManager ID="scMan" runat="server" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:VIBA_NewConnectionString %>" 
            
            SelectCommand="SELECT [Status], [Card_Id], [Card_Ten], [Card_Description], [Thietbi_Ten], [Tram_Ten] FROM [VIBA_CARD]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
